package com.example.homework07.SQLite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class Helper extends SQLiteOpenHelper {
    public Helper(Context context){
        super(context,"sqlite.db",null,1);
    }

    @Override
    public void onCreate(SQLiteDatabase db){
        db.execSQL("CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT,"+ " username TEXT, age INTEGER)");
    }

    @Override
    public  void onUpgrade(SQLiteDatabase db,int oldVersion,int newVersion){}
}
